package com.bluemoon.model.test.dbImort.visitor;

/**
 * @author Jarod.Kong
 * @date 2021/1/13 11:56
 */
public enum FileType {
    PDF(0, new String[]{".pdf"}),
    PPT(1, new String[]{".ppt", ".pptx"}),
    WORD(2, new String[]{".doc", ".docx"}),
    TXT(3, new String[]{".txt"}),
    EXCEL(4, new String[]{".xls", ".xlsx"});

    private final int code;
    private final String[] suffix;

    FileType(int code, String[] suffix) {
        this.code = code;
        this.suffix = suffix;
    }

    public int getCode() {
        return code;
    }

    public String[] getLowerCaseSuffix() {
        return suffix;
    }
}
